// @Author EthanScriptOn
// @Desc
package response

type CurrencyResponse struct {
	*CommonResponse
	Data interface{} `json:"data"`
}

func GenerateCurrencyResponse(data interface{}, commonFun GeneratingFun) *CurrencyResponse {
	if commonFun == nil {
		return nil
	}
	return &CurrencyResponse{
		Data:           data,
		CommonResponse: commonFun(),
	}
}
